.toast-container ::-webkit-scrollbar,
.toast-msg-stack ::-webkit-scrollbar {
  width: 5px;
}
.toast-container ::-webkit-scrollbar-track,
.toast-msg-stack ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 1px rgba(100, 100, 100, 0.2);
}
.toast-container ::-webkit-scrollbar-track:window-inactive,
.toast-msg-stack ::-webkit-scrollbar-track:window-inactive {
  box-shadow: none;
}
.toast-container ::-webkit-scrollbar-thumb,
.toast-msg-stack ::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 1px rgba(100, 100, 100, 0.2);
  border-radius: 10px;
  background: rgba(100, 100, 100, 0.15);
}
.toast-container ::-webkit-scrollbar-thumb:window-inactive,
.toast-msg-stack ::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(200, 200, 200, 0.1);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
}
.toast-container,
.toast-msg-stack {
  font-size: 14px;
  line-height: 20px;
}
/* 定义动画 */
.a-slide-in-right {
  -webkit-animation: fadeInRight 0.5s;
          animation: fadeInRight 0.5s;
}
.a-slide-out-right {
  -webkit-animation: fadeOutRight 0.5s;
          animation: fadeOutRight 0.5s;
}
.a-slide-top {
  -webkit-animation: slideTop2 0.4s;
          animation: slideTop2 0.4s;
}
/* end 定义动画 */
/* animations */
@-webkit-keyframes pop {
  0% {
    -ms-transform: -ms-scale(0.8);
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
    opacity: 0;
  }
  40% {
    -ms-transform: -ms-scale(1.1);
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    opacity: 1;
  }
  100% {
    -ms-transform: -ms-scale(1);
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@keyframes pop {
  0% {
    -ms-transform: -ms-scale(0.8);
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
    opacity: 0;
  }
  40% {
    -ms-transform: -ms-scale(1.1);
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    opacity: 1;
  }
  100% {
    -ms-transform: -ms-scale(1);
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
/*
  从右向左滑入，带回弹
 */
@-webkit-keyframes fadeInRight {
  0% {
    -ms-transform: -ms-translateX(100%);
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    opacity: 0;
  }
  100% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeInRight {
  0% {
    -ms-transform: -ms-translateX(100%);
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    opacity: 0;
  }
  100% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}
@-webkit-keyframes fadeOutRight {
  0% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
  100% {
    -ms-transform: -ms-translateX(100%);
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    opacity: 0;
  }
}
@keyframes fadeOutRight {
  0% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
  100% {
    -ms-transform: -ms-translateX(100%);
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    opacity: 0;
  }
}
@-webkit-keyframes slideTop {
  0% {
    -ms-transform: -ms-translateX(-20%);
    -webkit-transform: translateY(-20%);
            transform: translateY(-20%);
  }
  100% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes slideTop {
  0% {
    -ms-transform: -ms-translateX(-20%);
    -webkit-transform: translateY(-20%);
            transform: translateY(-20%);
  }
  100% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes slideTop2 {
  0% {
    margin-top: -12px;
    opacity: 0.5;
    -ms-transform: -ms-scale(0.9);
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  100% {
    margin-top: 0;
    opacity: 1;
    -ms-transform: -ms-scale(1);
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes slideTop2 {
  0% {
    margin-top: -12px;
    opacity: 0.5;
    -ms-transform: -ms-scale(0.9);
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  100% {
    margin-top: 0;
    opacity: 1;
    -ms-transform: -ms-scale(1);
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
/* end animations */
.toast-container,
.toast-container * {
  box-sizing: border-box;
  word-break: break-all;
}
.toast-container .toast-mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}
.toast-container .toast-content {
  display: block;
  position: fixed;
  top: 52%;
  left: 50%;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(30, 30, 30, 0.85);
  text-align: center;
  -webkit-animation: pop 0.4s;
          animation: pop 0.4s;
  z-index: 2000;
}
.toast-container .toast-content.toast2 {
  background-color: rgba(0, 0, 0, 0.82);
  padding: 0;
  color: #fff;
  width: 240px;
  margin-top: -100px;
  margin-left: -120px;
}
.toast-container .toast-content.toast-msg {
  background-color: #fff;
  color: #333;
  width: 360px;
  margin-top: -100px;
  margin-left: -180px;
  overflow: hidden;
}
.toast-container .toast-content.toast-success,
.toast-container .toast-content.toast-loading {
  background-color: rgba(0, 0, 0, 0.75);
  width: 120px;
  height: 120px;
  margin-left: -60px;
}
.toast-container .toast-content.toast-success .success-icon,
.toast-container .toast-content.toast-loading .success-icon {
  padding: 5px 0 0 0;
  height: auto;
}
.toast-container .toast-content.toast-success .success-icon i,
.toast-container .toast-content.toast-loading .success-icon i {
  font-size: 70px;
  color: #fff;
  border: none;
  background-color: transparent;
}
.toast-container .toast-content.toast-success .body,
.toast-container .toast-content.toast-loading .body {
  color: #fff;
}
.toast-container .toast-content.toast-loading .success-icon {
  padding-top: 25px;
}
.toast-container .toast-content.toast-loading .success-icon i {
  font-size: 40px;
}
.toast-content .toast-header {
  font-weight: bold;
  padding: 15px 10px 7px 10px;
}
.toast-content .toast-body,
.toast-content .body {
  text-align: center;
  max-height: 130px;
  overflow: auto;
}
.toast-content .body {
  padding: 5px 15px 18px;
}
.toast-content .toast-body {
  padding: 10px 18px;
}
.toast-content .footer {
  position: relative;
  line-height: 42px;
}
.toast-content .footer:after {
  content: ' ';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  border-top: 1px solid #D5D5D6;
  -webkit-transform-origin: 0 0;
      -ms-transform-origin: 0 0;
          transform-origin: 0 0;
  -webkit-transform: scaleY(0.5);
      -ms-transform: scaleY(0.5);
          transform: scaleY(0.5);
}
.toast-content .footer a {
  color: #DD403B;
  display: block;
  border: none;
  text-decoration: none;
  text-align: center;
}
.toast-content .footer a:hover {
  color: #AC3429;
}
.toast-content .footer a:active {
  background-color: #eee;
}
.toast-content .footer a[data-role="cancel"] {
  position: relative;
  display: inline-block;
  width: 50%;
  color: #555;
}
.toast-content .footer a[data-role="cancel"]:hover {
  color: #333;
}
.toast-content .footer a[data-role="confirm"] {
  display: inline-block;
  width: 50%;
}
.toast-content .footer a[data-role="cancel"]:after {
  content: ' ';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 1px;
  border-right: 1px solid #ccc;
  -webkit-transform: scaleX(0.5);
      -ms-transform: scaleX(0.5);
          transform: scaleX(0.5);
  -webkit-transform-origin: 0 0;
      -ms-transform-origin: 0 0;
          transform-origin: 0 0;
}
/* success styles */
.toast-msg .success-icon {
  text-align: center;
  padding: 25px 0;
  height: 110px;
}
.toast-msg .success-icon i {
  background-color: #3fe666;
  color: #fff;
}
.toast-msg.error .success-icon i {
  background-color: #f46e65;
}
.toast-msg .ticon-check-circle,
.toast-msg .ticon-cross-circle,
.toast-msg .ticon-frown-circle {
  font-size: 80px;
}
/* end success styles */
/* icons */
[class^="ticon-"] {
  display: inline-block;
  position: relative;
}
[class*=ticon][class*=circle] {
  border-radius: 50%;
  width: 1em;
  height: 1em;
  border: 2px solid;
}
[class*=ticon][class*=check],
[class*=ticon][class*=cross] {
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
[class*=ticon][class*=check]:before,
[class*=ticon][class*=check]:after {
  content: ' ';
  position: absolute;
  bottom: 0.35em;
  left: 0.25em;
  background-color: #fff;
}
[class*=ticon][class*=check]:before {
  width: 0.5em;
  height: 3px;
}
[class*=ticon][class*=check]:after {
  width: 3px;
  height: 0.25em;
}
[class*=ticon][class*=cross]:before,
[class*=ticon][class*=cross]:after {
  content: ' ';
  position: absolute;
  background-color: #fff;
}
[class*=ticon][class*=cross]:before {
  bottom: 50%;
  height: 2px;
  left: 0.2em;
  right: 0.2em;
  margin-bottom: -1px;
}
[class*=ticon][class*=cross]:after {
  top: 0.2em;
  bottom: 0.2em;
  left: 50%;
  width: 2px;
  margin-left: -1px;
}
[class*=ticon][class*=frown]:before,
[class*=ticon][class*=frown]:after {
  content: ' ';
  position: absolute;
}
[class*=ticon][class*=frown]:before {
  border-radius: 50%;
  height: 0.15em;
  width: 0.15em;
  box-shadow: 0.4em 0 0 0,0 0 0 0.3em inset;
  left: 0.2em;
  top: 0.3em;
}
[class*=ticon][class*=frown]:after {
  border: 2px solid;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  left: 25%;
  top: 70%;
  height: 0.5em;
  width: 0.5em;
  border-radius: 50%;
}
/* loading icon */
@-webkit-keyframes loading {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(-360deg);
            transform: rotate(-360deg);
  }
}
@keyframes loading {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(-360deg);
            transform: rotate(-360deg);
  }
}
[class*=ticon][class*=loading] {
  height: 1em;
  width: 1em;
  background-repeat: no-repeat;
  background-image: url();
  -webkit-animation: loading 1.4s linear;
          animation: loading 1.4s linear;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  background-position: center;
  background-size: contain;
}
/* end of icons */
/* message box */
.toast-msg-stack {
  position: fixed;
  top: 80px;
  right: 15px;
  z-index: 100;
}
.toast-msg-stack,
.toast-msg-stack * {
  box-sizing: border-box;
  word-break: break-all;
}
.toast-msg-stack .msg-box {
  position: relative;
  left: 0;
  top: 0;
  opacity: 1;
  width: 320px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fefeb9;
  color: #969631;
  font-weight: normal;
  margin-bottom: 10px;
  box-shadow: 0px 0px 4px rgba(90, 90, 90, 0.25);
  -webkit-transition: left 0.35s, opacity 0.35s, margin-top 0.35s;
  transition: left 0.35s, opacity 0.35s, margin-top 0.35s;
}
.toast-msg-stack .msg-box .close {
  float: right;
  width: 60px;
  height: 60px;
  line-height: 60px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-shadow: none;
  color: #969631;
  opacity: 1;
}
.toast-msg-stack .msg-box .close:focus,
.toast-msg-stack .msg-box .close:hover {
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
  background-color: #f7f79c;
}
.toast-msg-stack .msg-box .close:active {
  text-shadow: none;
  background-color: #f5f584;
}
.toast-msg-stack .msg-box .body {
  width: 260px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 10px;
  text-align: left;
  overflow-y: auto;
  overflow-x: hidden;
}
.toast-msg-stack .msg-box .body.fully-scaled {
  width: 100%;
}
.toast-msg-stack .msg-box.theme-danger,
.toast-msg-stack .msg-box.theme-danger .close {
  background-color: #fbb0b9;
  color: #a72a36;
}
.toast-msg-stack .msg-box.theme-danger .close:hover {
  background-color: #faa1ac;
}
.toast-msg-stack .msg-box.theme-danger .close:active {
  background-color: #fa98a3;
}
.toast-msg-stack .msg-box.theme-info,
.toast-msg-stack .msg-box.theme-info .close {
  background-color: #8ed5ea;
  color: #276da9;
}
.toast-msg-stack .msg-box.theme-info .close:hover {
  background-color: #81d0e8;
}
.toast-msg-stack .msg-box.theme-info .close:active {
  background-color: #78cde6;
}
.toast-msg-stack .msg-box.theme-success,
.toast-msg-stack .msg-box.theme-success .close {
  background-color: #56EF7A;
  color: #333;
}
.toast-msg-stack .msg-box.theme-success .close:hover {
  background-color: #3fed68;
}
.toast-msg-stack .msg-box.theme-success .close:active {
  background-color: #31eb5d;
}
/* end message box */
/* media queries */
/**
 * 414: iphone 7 plus 的屏幕宽度像素数
 */
@media screen and (max-width: 415px) {
  .toast-container .toast-content {
    margin-top: -90px;
  }
  .toast-container .toast-content.toast-msg {
    width: 80%;
    margin-left: -40%;
  }
  .toast-container .toast-content.toast-success,
  .toast-container .toast-content.toast-loading {
    width: 120px;
    margin-left: -60px;
  }
  .toast-msg-stack {
    top: 0;
    right: 0;
  }
  .toast-msg-stack .msg-box {
    margin-bottom: 2px;
    border-radius: 0;
  }
}
/* end media queries */
